1 <?php
2 session_start();
3 include(
"header.php");
4         
if(isset($_SESSION[empid]))
5     {
6         header(
"Location: empaccount.php");
7     }
8 include(
"sidebar.php");
9 include(
"dbconnection.php");
10 $sql = mysql_query(
"select * from vehiclestore where status != 'Sold'");
11
12 ?>
13
14
15         <div id=
"main">
16         <h3>Vehicle store</h3>
17
18         <div id=
"wrapper">
19         <?php
20            
while($row = mysql_fetch_array($sql))
21         {
22         ?>
23         <div id=
"products">
24         <table width=
"497" border="0">
25         <tr>
26         <td><img src=
"upload/<?= $row['images']; ?>" width="122" height="95" align="left" /><strong>Vehicle Name:</strong> <?= $row['vehname']; ?><br />
27         <strong>Model:</strong> <?= $row[
'model']; ?> <br />
28         <strong> Brand:</strong><?= $row[
'brand']; ?><br />
29               <strong>Estimated price: </strong>$<?= $row[
'estprice']; ?><br />
30               <strong> <?php echo
"<br><a href='testdrive.php?vahicleidnum=$row[vehicleid]'>Test Drive&gt;&gt;</a> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <a href='vehiclestoremore.php?vahicleid=$row[vehicleid]'>More&gt;&gt;</a></strong><br />"; ?>
31               <br />
32             </p>
33         </td></tr></table>
34         </div>
35          <?
36         }
37         ?>
38         </div>
39
40         <!--<table width=
"538" border="1">
41
42
43           <tr>
44             <td width=
"268">
45             <p><img src=
"images/vehicle.jpg" width="122" height="95" align="left" /><strong>Vehicle Name:</strong> <?= $row['vehname']; ?><br />
46               <strong>Model:</strong> <?= $row[
'vehname']['0']; ?> <br />
47               <strong> Brand:</strong> tyere<br />
48               <strong>Estimated price: </strong>Rs.
20000<br />
49               <strong> <a href=
"vehiclestoremore.php">More&gt;&gt;</a></strong><br />
50               <br />
51             </p></td>
52             <td width=
"246"><p><img src="images/vehicle.jpg" width="122" height="95" align="left" /><strong>Vehicle Name:</strong> <?= $row['vehname']; ?><br />
53               <strong>Model:</strong> <?= $row[
'vehname']['1']; ?> <br />
54               <strong> Brand:</strong> tyere<br />
55               <strong>Estimated price: </strong>Rs.
20000<br />
56               <strong> <a href=
"vehiclestoremore.php">More&gt;&gt;</a></strong><br />
57               <br />
58             </p></td>
59           </tr>
60          <?
61          
// }
62           ?>
63           <tr>
64             <td>&nbsp;<p><img src=
"images/vehicle.jpg" width="122" height="95" align="left" /><strong>Vehicle Name:</strong> <?= $row['vehname']; ?><br />
65               <strong>Model:</strong> <?= $row[
'vehname']; ?> <br />
66               <strong> Brand:</strong> tyere<br />
67               <strong>Estimated price: </strong>Rs.
20000<br />
68               <strong> <a href=
"vehiclestoremore.php">More&gt;&gt;</a></strong><br />
69               <br />
70             </p></td>
71             <td>&nbsp;<p><img src=
"images/vehicle.jpg" width="122" height="95" align="left" /><strong>Vehicle Name:</strong> <?= $row['vehname']; ?><br />
72               <strong>Model:</strong> <?= $row[
'vehname']; ?> <br />
73               <strong> Brand:</strong> tyere<br />
74               <strong>Estimated price: </strong>Rs.
20000<br />
75               <strong> <a href=
"vehiclestoremore.php">More&gt;&gt;</a></strong><br />
76               <br />
77             </p></td>
78           </tr>
79             <tr>
80             <td>&nbsp;<p><img src=
"images/vehicle.jpg" width="122" height="95" align="left" /><strong>Vehicle Name:</strong> <?= $row['vehname']; ?><br />
81               <strong>Model:</strong> <?= $row[
'vehname']; ?> <br />
82               <strong> Brand:</strong> tyere<br />
83               <strong>Estimated price: </strong>Rs.
20000<br />
84               <strong> <a href=
"vehiclestoremore.php">More&gt;&gt;</a></strong><br />
85               <br />
86             </p></td>
87             <td>&nbsp;<p><img src=
"images/vehicle.jpg" width="122" height="95" align="left" /><strong>Vehicle Name:</strong> <?= $row['vehname']; ?><br />
88               <strong>Model:</strong> <?= $row[
'vehname']; ?> <br />
89               <strong> Brand:</strong> tyere<br />
90               <strong>Estimated price: </strong>Rs.
20000<br />
91               <strong> <a href=
"vehiclestoremore.php">More&gt;&gt;</a></strong><br />
92               <br />
93             </p></td>
94           </tr> <tr>
95             <td>&nbsp;<p><img src=
"images/vehicle.jpg" width="122" height="95" align="left" /><strong>Vehicle Name:</strong> <?= $row['vehname']; ?><br />
96               <strong>Model:</strong> <?= $row[
'vehname']; ?> <br />
97               <strong> Brand:</strong> tyere<br />
98               <strong>Estimated price: </strong>Rs.
20000<br />
99               <strong> <a href=
"vehiclestoremore.php">More&gt;&gt;</a></strong><br />
100               <br />
101             </p></td>
102             <td>&nbsp;<p><img src=
"images/vehicle.jpg" width="122" height="95" align="left" /><strong>Vehicle Name:</strong> <?= $row['vehname']; ?><br />
103               <strong>Model:</strong> <?= $row[
'vehname']; ?> <br />
104               <strong> Brand:</strong> tyere<br />
105               <strong>Estimated price: </strong>Rs.
20000<br />
106               <strong> <a href=
"vehiclestoremore.php">More&gt;&gt;</a></strong><br />
107               <br />
108             </p></td>
109           </tr>
110           </table>-->
111         </div>
112
113 <!-- wrap ends here -->
114 </div>
115
116 <?php
117 include(
"footer.php");
118 ?>


Gõ tìm kiếm nhanh...